package vld

import (
	sqlc "bp/db/sqlc"
)

// IsCouponUsePeriodType check string is em_coupon_use_period_type
func IsCouponUsePeriodType(v string) (success bool) {
	switch sqlc.EmCouponUsePeriodType(v) {
	case sqlc.EmCouponUsePeriodTypeSinceGot, sqlc.EmCouponUsePeriodTypeFixedDate:
		success = true
	}
	return
}